<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank')}">等级管理</a></li>
        <li class="active"><a href="{:cmf_plugin_url('UserOther://admin_index/user_other_rank_add')}">添加等级</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:cmf_plugin_url('UserOther://admin_index/user_other_rank_add_post')}" method="post">
    	<div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">排序</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-list_order" name="list_order" value="50">
            </div>
        </div>
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>等级名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-name" name="name">
            </div>
        </div>
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">升级条件</label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" id="input-upgradeif" name="upgradeif">
                <p style="color:#999; margin-top:3px; margin-bottom:0;">会员升级条件，完成订单金额满多少元后升级，不填写或为0默认为不自动升级</p>
            </div>
        </div>
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label">折扣</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-discount" name="discount" value="">
                <p style="color:#999; margin-top:3px; margin-bottom:0;">请输入0.1~10之间的数字,值为空代表不设置折扣</p>
            </div>
        </div>
        <div class="form-group">
            <label for="input-remark" class="col-sm-2 control-label">等级描述</label>
            <div class="col-md-6 col-sm-10">
                <textarea type="text" class="form-control" id="input-remark" name="remark"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('STATUS')}</label>
            <div class="col-md-6 col-sm-10">
                <label class="radio-inline">
                    <input type="radio" name="status" value="1"> {:lang('ENABLED')}
                </label>
                <label class="radio-inline">
                    <input type="radio" name="status" value="0"> {:lang('DISABLED')}
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>